Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Finder Guide /
Chapter 2 - Finder Objects / Object Class Definitions


Content Space

An object of class Content Space can be any Finder content space, including a container window, the desktop, an information window, a sharing window,
a status window, or a window.

PROPERTIES
None

ELEMENT CLASSES
Like any window, a content space can contain any of the elements that can be contained by the object to which it belongs.

COMMANDS HANDLED
Clean Up, Close, Count, Data Size, Exists, Get, Open, Print, Sort, Update

DEFAULT VALUE RETURNED
Reference to a content space or, if you use the plural form content spaces, a list of references.

EXAMPLE
This script returns a list of all Finder content spaces that are currently open, including the desktop:

tell application "Finder"   content spaces
end tell

--result: {information window of startup disk of 
application "Finder", window of folder "Projects" of 
startup disk of application "Finder", window of startup 
disk of application "Finder", window of disk "Applications" 
of application "Finder", content space of desktop of 
application "Finder"}
For more information about using content spaces in scripts, see "References to Finder Windows," which begins on page 22.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996